package dao

import (
	"yk/global"
	"yk/internal/model"
)

// describe string
func GetListVideo() []*model.Video {
	var video []*model.Video
	if err := global.DB.Find(&video).Error; err != nil {
		return []*model.Video{}
	}
	return video
}

// Where("describe like ?", "%"+describe+"%")
func GetListAuthor() []*model.Video {
	var video []*model.Video
	if err := global.DB.Find(&video).Error; err != nil {
		return []*model.Video{}
	}
	return video
}
